<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>河邮政管理学历系统-登陆页面</title>
<script type="text/javascript">
function gourl(){
 var re=document.getElementById("re2");
 var name=document.getElementById("name").value;
 var pw=document.getElementById("pw").value;
  if(name==""){
 alert("请输入用户名");
 return false;
 }
  if(pw==""){
 alert("请输入密码");
 return false;
 }
  alert(name);
  alert(pw);
    var f = document.createElement("form");
	document.body.appendChild(f);
	var i1 = document.createElement("input");
	i1.type = "hidden";
	i1.name = "idcode";
	i1.value = name;
	f.appendChild(i1);
	var i2 = document.createElement("input");
	i2.type = "hidden";
	i2.name = "pw";
	i2.value = pw;
	f.appendChild(i2);
	var i3 = document.createElement("input");
	i3.type = "hidden";
	i3.name = "niu";
	if(re.checked)
	i3.value = "admin";
	else
	i3.value = "stu";	
	f.appendChild(i3);
	f.action = "http://www.hbyzpx.com:6666/main!login.action";
	f.target="_blank";
	f.method = "post";
	f.submit();
}
</script>
</head>
<body>
<div style="width:248px;height:130px;border:1px solid #CFCED4;color:#454545;font-size:13px; background:url(http://www.hbyzpx.com:6666/zjjs/login/loginbg.jpg) no-repeat;">
<table width="100%" border="0"><tr><td colspan="3" height="31">&nbsp;</td></tr>
<tr><td width="24%"><input type="radio" id="re1" name="radiobutton" value="radiobutton" checked="checked"/>学员    </td><td width="52%"><input type="radio" id="re2" name="radiobutton" value="radiobutton" />管理员</td><td width="24%">&nbsp;</td></tr>
<tr><td>&nbsp;用户名:</td><td><input type="text" id="name" name="name"  style="width:120px; height:20px; background:#FFFFFF; border:1px solid #CFCED4;"/>    </td>
<td rowspan="2"><input name="" onclick="gourl();" type="button" style="width:49px; height:52px; background:url(http://www.hbyzpx.com:6666/zjjs/login/dengbut.jpg) no-repeat; border:none; cursor: pointer;" /></td></tr>
<tr><td>&nbsp;密码：</td><td> <input type="password" id="pw" name="pw"  style="width:120px; height:20px; background:#FFFFFF; border:1px solid #CFCED4;"/></td></tr></table></div>
</body>
</html>
